package com.cloudeye.business.base.rabbitmq;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by lafangyuan on 2021/6/29.
 */
public class MsgSenderService {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void sendFlightXml(String text){
        rabbitTemplate.convertSendAndReceive("XIY.AMB.flight","INSERT",text);
    }
}
